public class Circle {
    Point cen = new Point(0.0, 0.0);
    double r;
    Circle(Point p, double r) {
        cen = p;
        this.r = r;
    }

    Circle(double r) {
        this.r = r;
    }
    boolean contains(Point q) {
        Double dis = q.getDistance(cen);
        if (dis >= (r * r)) {
            return false;
        } 
        else {
            return true;
        }
    }
}
